package sn.functions;

public class SigmoidFunction implements ActivationFunction {

	@Override
	public double compute(double x) {
		return 1/Math.exp(-x);
	}

	@Override
	public double derivative(double x) {
		return Math.exp(-x)/((1+Math.exp(-x))*(1+Math.exp(-x)));
	}

}
